package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 商品申诉记录表
 * </p>
 *
 * @author wpdcn
 * @since 2020-06-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_appeal")
@ApiModel(value="ShopAppealEntity对象", description="商品申诉记录表")
public class ShopAppealEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "申诉人")
    @ApiModelProperty(value = "申诉人")
    private Long appealUserId;

    @Column(comment = "申诉人")
    @ApiModelProperty("申诉人")
    @TableField(exist = false)
    private String appealUserName;

    @Column(comment = "申诉时间")
    @ApiModelProperty(value = "申诉时间")
    private LocalDateTime appealTime;

    @Column(comment = "申诉的商品id")
    @ApiModelProperty(value = "申诉的商品id")
    private Long goodId;

    @Column(comment = "商品名称")
    @ApiModelProperty("商品名称")
    @TableField(exist = false)
    private String goodName;

    @Column(comment = "状态：1-未处理；2-同意；3-驳回")
    @ApiModelProperty(value = "状态：1-未处理；2-同意；3-驳回")
    private String status;

    @Column(comment = "申诉内容")
    @ApiModelProperty(value = "申诉内容")
    private String content;

    @Column(comment = "驳回理由")
    @ApiModelProperty(value = "驳回理由")
    private String reason;

    @Column(comment = "审批人id")
    @ApiModelProperty(value = "审批人id")
    private Long operateUserId;


    @Column(comment = "审批时间")
    @ApiModelProperty(value = "审批时间")
    private LocalDateTime operateTime;




}
